package com.zeng.ssm.service.config;

import org.jeecg.modules.jmreport.config.JmReportBaseConfig;

import java.util.List;
import java.util.Map;

/**
 * 描述信息
 *
 * @author zengwanlin
 * @date 2022-03-11T17:32
 */
//@Configuration("jimuReortBaseConfig")
//@PropertySource(value = {"classpath:jimu.properties"}, encoding = "UTF-8")
public class JimuReportBaseConfig extends JmReportBaseConfig {

    //@Value("${jeecg.jmreport.saas}")
    private Boolean saas = false;

    //@Value("${jeecg.jmreport.mode}")
    private String mode = "dev";

    //@Value("${jeecg.jmreport.customPrePath}")
    private String customPrePath;

    //@Value("${jeecg.jmreport.col}")
    private Integer col;

    //@Value("${jeecg.jmreport.pageSize}")
    private List<Integer> pageSize;

    //@Value("${jeecg.jmreport.datasource}")
    private String datasource;

    //@Value("${jeecg.jmreport.printPaper}")
    private List<Map<String, Object>> printPaper;

    //@Value("${jeecg.jmreport.autoSave}")
    private Boolean autoSave;

    //@Value("${jeecg.jmreport.interval}")
    private Long interval;

    //@Value("${jeecg.jmreport.apiBasePath}")
    private String apiBasePath;

    //@Value("${jeecg.jmreport.pageSizeNumber}")
    private Integer pageSizeNumber = 10000;

    //@Value("${jeecg.jmreport.connectTimeout}")
    private Integer connectTimeout;

    //@Value("${jeecg.jmreport.exportExcelPattern}")
    private String exportExcelPattern = "fast";

    //@Value("${jeecg.jmreport.exportDisabled}")
    private Boolean exportDisabled = false;

    //@Value("${jeecg.jmreport.excelStyleRow}")
    public Integer excelStyleRow = 1000;

    //@Value("${jeecg.jmreport.selectShowTotal}")
    public Integer selectShowTotal = 10;

    @Override
    public Boolean getSaas() {
        return saas;
    }

    @Override
    public void setSaas(Boolean saas) {
        this.saas = saas;
    }

    @Override
    public String getMode() {
        return mode;
    }

    @Override
    public void setMode(String mode) {
        this.mode = mode;
    }

    @Override
    public String getCustomPrePath() {
        return customPrePath;
    }

    @Override
    public void setCustomPrePath(String customPrePath) {
        this.customPrePath = customPrePath;
    }

    @Override
    public Integer getCol() {
        return col;
    }

    @Override
    public void setCol(Integer col) {
        this.col = col;
    }

    @Override
    public List<Integer> getPageSize() {
        return pageSize;
    }

    @Override
    public void setPageSize(List<Integer> pageSize) {
        this.pageSize = pageSize;
    }

    @Override
    public String getDatasource() {
        return datasource;
    }

    @Override
    public void setDatasource(String datasource) {
        this.datasource = datasource;
    }

    @Override
    public List<Map<String, Object>> getPrintPaper() {
        return printPaper;
    }

    @Override
    public void setPrintPaper(List<Map<String, Object>> printPaper) {
        this.printPaper = printPaper;
    }

    @Override
    public Boolean getAutoSave() {
        return autoSave;
    }

    @Override
    public void setAutoSave(Boolean autoSave) {
        this.autoSave = autoSave;
    }

    @Override
    public Long getInterval() {
        return interval;
    }

    @Override
    public void setInterval(Long interval) {
        this.interval = interval;
    }

    @Override
    public String getApiBasePath() {
        return apiBasePath;
    }

    @Override
    public void setApiBasePath(String apiBasePath) {
        this.apiBasePath = apiBasePath;
    }

    @Override
    public Integer getPageSizeNumber() {
        return pageSizeNumber;
    }

    @Override
    public void setPageSizeNumber(Integer pageSizeNumber) {
        this.pageSizeNumber = pageSizeNumber;
    }

    @Override
    public Integer getConnectTimeout() {
        return connectTimeout;
    }

    @Override
    public void setConnectTimeout(Integer connectTimeout) {
        this.connectTimeout = connectTimeout;
    }

    @Override
    public String getExportExcelPattern() {
        return exportExcelPattern;
    }

    @Override
    public void setExportExcelPattern(String exportExcelPattern) {
        this.exportExcelPattern = exportExcelPattern;
    }

    @Override
    public Boolean getExportDisabled() {
        return exportDisabled;
    }

    @Override
    public void setExportDisabled(Boolean exportDisabled) {
        this.exportDisabled = exportDisabled;
    }

    @Override
    public Integer getExcelStyleRow() {
        return excelStyleRow;
    }

    @Override
    public void setExcelStyleRow(Integer excelStyleRow) {
        this.excelStyleRow = excelStyleRow;
    }

    @Override
    public Integer getSelectShowTotal() {
        return selectShowTotal;
    }

    @Override
    public void setSelectShowTotal(Integer selectShowTotal) {
        this.selectShowTotal = selectShowTotal;
    }

    @Override
    public String toString() {
        return "JimuReportBaseConfig{" +
                "saas=" + saas +
                ", mode='" + mode + '\'' +
                ", customPrePath='" + customPrePath + '\'' +
                ", col=" + col +
                ", pageSize=" + pageSize +
                ", datasource='" + datasource + '\'' +
                ", printPaper=" + printPaper +
                ", autoSave=" + autoSave +
                ", interval=" + interval +
                ", apiBasePath='" + apiBasePath + '\'' +
                ", pageSizeNumber=" + pageSizeNumber +
                ", connectTimeout=" + connectTimeout +
                ", exportExcelPattern='" + exportExcelPattern + '\'' +
                ", exportDisabled=" + exportDisabled +
                ", excelStyleRow=" + excelStyleRow +
                ", selectShowTotal=" + selectShowTotal +
                '}';
    }
}
